package io.renren.modules.generator.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.renren.modules.generator.dao.StationDao;
import io.renren.modules.generator.entity.StationEntity;
import io.renren.modules.generator.service.StationService;



@Service("stationService")
public class StationServiceImpl implements StationService {
	@Autowired
	private StationDao stationDao;
	
	@Override
	public StationEntity queryObject(Integer flowId){
		return stationDao.queryObject(flowId);
	}
	
	@Override
	public List<StationEntity> queryList(Map<String, Object> map){
		return stationDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return stationDao.queryTotal(map);
	}
	
	@Override
	public void save(StationEntity station){
		stationDao.save(station);
	}
	
	@Override
	public void update(StationEntity station){
		stationDao.update(station);
	}
	
	@Override
	public void delete(Integer flowId){
		stationDao.delete(flowId);
	}
	
	@Override
	public void deleteBatch(Integer[] flowIds){
		stationDao.deleteBatch(flowIds);
	}

	@Override
	public List<StationEntity> timeList(Map<String, Object> map){
		return stationDao.timeList(map);
	}

	@Override
	public int timeTotal(Map<String, Object> map){
		return stationDao.timeTotal(map);
	}
	
}
